package com.yunji.order.dto.cmd;

import com.yunji.order.domain.OrderDO;
import com.yunji.order.domain.OrderDetailDO;
import com.yunji.order.emuns.OrderStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author : peter-zhu
 * @date : 2025/3/8 17:29
 * @description : TODO
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class OrderCreateCommandDTO extends OrderCommandDTO {

    private Long couponId;
    private List<OrderDetailDO> detailList;

    public OrderCreateCommandDTO() {
    }

    public OrderCreateCommandDTO(OrderDO orderDO,List<OrderDetailDO> detailList) {
        super(orderDO,null);
        this.detailList = detailList;
    }

    public OrderCreateCommandDTO(OrderDO orderDO, List<OrderDetailDO> detailList, OrderStatusEnum newStatus, Long couponId) {
        super(orderDO, newStatus);
        this.detailList = detailList;
        this.couponId = couponId;
    }
}
